<p class="Paragraph">Number: Any numeric expression for which to return the absolute value. Any positive number, including O, will be returned in the original; any negative number will be converted to a positive number.</p>
<p class="Paragraph">The following example uses the Absfunction to calculate the difference between two values. It doesnt matter which of the values you enter first; the <span class="T1">Abs</span> function corrects possible negative results.</p>
<p class="P2">Example:</p>
<p class="PropText">Sub ExampleDifference</p>
<p class="PropText">Dim siW1 As Single</p>
<p class="PropText">Dim siW2 As Single</p>
<p class="PropText">siW1 = Int(InputBox$ ("Please enter the first amount","Value input"))</p>
<p class="PropText">siW2 = Int(InputBox$ ("Please enter the second amount","Value input"))</p>
<p class="PropText">Print "The difference is "; Abs(siW1 - siW2)</p>